// @Author miaoqing
// @Date 2024/03/12 17:58:00
// @Desc
package logicredis

func GenUuid() uint64 {
	key := "uuid"
	ret := CacheRedis().Incr(key)
	if ret.Err() != nil {
		return 0
	}

	if ret.Val() > 0 {
		return uint64(ret.Val())
	}

	return 0
}
